package org.smart4j.aopdemo.simple;

import org.smart4j.aopdemo.aspectj.Tag;
import org.springframework.stereotype.Component;

@Component
public class GreetingImpl implements Greeting {

    public void sayHello(String name) {
        System.out.println(" sayHello " + name);
    }

    public void sayThrow() {
        throw new RuntimeException("SayHello throw");
    }


    @Tag
    public void sayHelloTag() {
        System.out.println(" sayHello Tag");
    }


}
